#include "SparkEditorPanelSceneView.h"

SparkEditorPanelSceneView::SparkEditorPanelSceneView()
	: SparkEditorPanel()
{

}

SparkEditorPanelSceneView::SparkEditorPanelSceneView(wxWindow *parent, wxWindowID winid, const wxPoint& pos, const wxSize& size, long style, const wxString& name)
	: SparkEditorPanel(parent, winid, pos, size, style, name)
{
	SparkEditorPanelView* mpMainOgreView = new SparkEditorPanelView(this);
	m_PanelAuiManager.AddPane(mpMainOgreView, wxAuiPaneInfo().
		Name(wxT("Scene")).Caption(wxT("Scene")).
		Center().Layer(1).Position(0));

	mpMainOgreView->ConnectEvent();

	m_PanelAuiManager.Update();
}

SparkEditorPanelSceneView::~SparkEditorPanelSceneView()
{
}

void SparkEditorPanelSceneView::ConnectEvent(void)
{

}

SparkEditorPanelView* SparkEditorPanelSceneView::GetPanelView(void)
{
	return dynamic_cast<SparkEditorPanelView*>(m_PanelAuiManager.GetPane(wxT("Scene")).window);
}